package cn.tiancaifan.micro.service;


import cn.tiancaifan.micro.entity.Menu;
import cn.tiancaifan.micro.mapper.MenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissService {

    @Autowired
    MenuMapper menuMapper;


    public List<Menu> getAllMenus(){
        return menuMapper.getAllMenus();
    }

    public List<Integer> getMidsByRid(Integer id) {
        return menuMapper.getMidsByRid(id);
    }
}
